package housing.task3.factory;

import housing.task3.dao.HsRequestDao;
import housing.task3.jdbc.HsRequestDaoImpl;

import java.sql.Connection;

public class HsRequestDaoFactory {
    /**
     * Method 'create'
     *
     * @return HsRequestDao
     */
    public static HsRequestDao create() {
        return new HsRequestDaoImpl();
    }

    /**
     * Method 'create'
     *
     * @param conn
     * @return HsRequestDao
     */
    public static HsRequestDao create(Connection conn) {
        return new HsRequestDaoImpl(conn);
    }

}
